﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="GamblingMainMenu.ascx.cs" Inherits="VirtualTournaments.Frontend.MenuControls.GamblingManagerMenu.InnerControls.GamblingMainMenu" %>

<%@ Register TagPrefix="GenericControls" TagName="TeamInfo" Src="~/MenuControls/GenericControls/TeamInfo.ascx" %>
<%@ Register TagPrefix="GamblingMenuControls" TagName="TournamentBetControl" Src="~/MenuControls/GamblingManagerMenu/InnerControls/TournamentBet.ascx" %>
<%@ Register TagPrefix="GamblingMenuControls" TagName="MatchBetControl" Src="~/MenuControls/GamblingManagerMenu/InnerControls/MatchBet.ascx" %>

<link href="../../../App_Themes/TournamentManager/TournamentManager.css" rel="stylesheet" type="text/css" />
<asp:Panel ID="ContentPanel" runat="server">

   <asp:MultiView ID="TournamentBetViews" runat="server" ActiveViewIndex="0">
        
        <asp:View ID="AvailableTournamentsView" runat="server">
            <asp:Table ID="AvailableTournamentsTable" runat="server" Width="100%">
                <asp:TableHeaderRow>
                    <asp:TableHeaderCell Text="Tournament">
                    </asp:TableHeaderCell>
                    <asp:TableHeaderCell Text="Tournament Bet">
                    </asp:TableHeaderCell>
                    <asp:TableHeaderCell Text="Match Bet">
                    </asp:TableHeaderCell>
                </asp:TableHeaderRow>
            </asp:Table>
            
            <div id="ButtonBackDiv" class="ButtonBackDivCssClass">
            <asp:Button ID="GamblingMainMenuGoBackButton" runat="server" OnClick="GamblingMainMenuGoBackButton_OnClick" Text="< Go Back >" 
                CssClass="CreateTournamentButtonCssClass" BackColor="Transparent" BorderStyle="None"/>
            </div>
            <br />
        </asp:View>
        
        <asp:View ID="TeamsSelectionView" runat="server">
            <asp:UpdatePanel ID="TournamentBetUpdatePanel" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <GamblingMenuControls:TournamentBetControl ID="TournamentBetControl" runat="server"></GamblingMenuControls:TournamentBetControl>
            </ContentTemplate>
            </asp:UpdatePanel>
        </asp:View>
        
        <asp:View ID="JourneySelectionView" runat="server">
            <asp:UpdatePanel ID="MatchBetUpdatePanel" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <GamblingMenuControls:MatchBetControl ID="MatchBetControl" runat="server" />
            </ContentTemplate>
            </asp:UpdatePanel>
        </asp:View>
        
        <asp:View ID="TeamInfoView" runat="server">
            <GenericControls:TeamInfo ID="TeamInfoControl" runat="server" />
        </asp:View>
        
    </asp:MultiView>
   
</asp:Panel>